package edu.sctu.zcy.month201504.day1;

/**
 * Created by user24 on 2015/4/29.
 */
public class Day1Client {

    public static void main(String[] args) {
        TextSeven textseven1 = new TextSeven("张三", 12, 178);


        TextSeven textseven2 = new TextSeven("李四", 23, 167);


        TextSeven textseven3 = new TextSeven("王五", 34, 156);


        TextSeven[] textsevesn = {textseven1, textseven2, textseven3};

        print(textsevesn);
    }

    private static void print(TextSeven[] textsevesn) {

        for (int i = 0; i < textsevesn.length; i++) {
            System.out.println(textsevesn[i].name);
            System.out.println(textsevesn[i].age);
            System.out.println(textsevesn[i].height);

        }
    }
}
